using System;
using System.Collections.Generic;
using System.Text;

namespace Barrage.Shaders
{
    /// <summary>
    /// Singleton instance of D3DShader that loads the "simple.fx" shader
    /// </summary>
    class SimpleShader : D3DShader
    {
        protected static SimpleShader instance = null;

        /// <summary>
        /// Gets the Simple shader, creating it if necessary
        /// </summary>
        public static SimpleShader Instance { get { if (instance == null) instance = new SimpleShader(); return instance; } }

        /// <summary>
        /// Clear resources
        /// </summary>
        protected SimpleShader()
            : base("simple.fx")
        {
        }
    }
}